package org.hxyjs.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class Team implements Serializable {
    private String tno;

    private String fno;

    private String tname;

    private String tnationality;

    private String tdesc;

    private static final long serialVersionUID = 1L;

    public String getTno() {
        return tno;
    }

    public void setTno(String tno) {
        this.tno = tno;
    }

    public String getFno() {
        return fno;
    }

    public void setFno(String fno) {
        this.fno = fno;
    }

    public String getTname() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname = tname;
    }

    public String getTnationality() {
        return tnationality;
    }

    public void setTnationality(String tnationality) {
        this.tnationality = tnationality;
    }

    public String getTdesc() {
        return tdesc;
    }

    public void setTdesc(String tdesc) {
        this.tdesc = tdesc;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Team other = (Team) that;
        return (this.getTno() == null ? other.getTno() == null : this.getTno().equals(other.getTno()))
            && (this.getFno() == null ? other.getFno() == null : this.getFno().equals(other.getFno()))
            && (this.getTname() == null ? other.getTname() == null : this.getTname().equals(other.getTname()))
            && (this.getTnationality() == null ? other.getTnationality() == null : this.getTnationality().equals(other.getTnationality()))
            && (this.getTdesc() == null ? other.getTdesc() == null : this.getTdesc().equals(other.getTdesc()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getTno() == null) ? 0 : getTno().hashCode());
        result = prime * result + ((getFno() == null) ? 0 : getFno().hashCode());
        result = prime * result + ((getTname() == null) ? 0 : getTname().hashCode());
        result = prime * result + ((getTnationality() == null) ? 0 : getTnationality().hashCode());
        result = prime * result + ((getTdesc() == null) ? 0 : getTdesc().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", tno=").append(tno);
        sb.append(", fno=").append(fno);
        sb.append(", tname=").append(tname);
        sb.append(", tnationality=").append(tnationality);
        sb.append(", tdesc=").append(tdesc);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}